<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../lib/vue.js"></script>
</head>
<body>

    <!--v-stop 阻止冒泡-->
    <div id="app">
        <div  @click="outterHandler" style="width:500px;height:300px;background:yellow">
            <div  @click.stop="middlerHandler" style="width:300px;height:200px;background:red">
                <button @click.stop="innerHandler">点击</button>
            </div>
        </div>
    </div>
</body>
<script>
    new Vue({
        el:"#app",
        methods:{
            outterHandler(e){
                // e.stopPropagation()
                console.log("outterHandler");
            },
            middlerHandler(e){
                // e.stopPropagation()
                console.log("middlerHandler");
            },
            innerHandler(e){
                // e.stopPropagation()
                console.log("innerHandler");
            }
        }
    })
</script>
</html>
